<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">客户管理</h1>
</div>
<div class="wrapper-sm" ng-controller="clientController">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">查询</div>
        <div class="panel-body form-horizontal">
            <div class="form-group">
                <label class="col-lg-1 control-label pull-left">客户单位</label>
                <div class="col-lg-2">
                    <input type="text" class="form-control input-sm" id="table_clientManagent_name" ng-model="queryTerms.name" placeholder="请输入客户单位名称">
                </div>
                <label class="col-lg-1 control-label pull-left">地址</label>
                <div class="col-lg-2 pull-left">
                    <input type="text" class="form-control input-sm" id="table_clientManagent_address" name="table-clientManagent-address" ng-model="queryTerms.address" placeholder="请输入地址">
                </div>
                <label class="col-lg-1 control-label pull-left">商务专员</label>
                <div class="pull-left m-r">
                    <select id="table_clientManagent_businessOfficerId" name="businessOfficerId" class="form-control input-sm" ng-model="queryTerms.businessOfficerId" ng-options="x.id as x.realName for x in businessOfficerDropDown">
                        <option value="">全部</option>
                    </select>
                </div>
                <label class="col-lg-1 control-label pull-left">客户类型</label>
                <div class="pull-left m-r">
                    <select id="table_clientManagent_clientType" name="businessOfficerId" class="form-control input-sm" ng-model="queryTerms.clientType" ng-options="x.value as x.text for x in clientList">
                        <option value="">全部</option>
                    </select>
                </div>
                <button id="table_clientManagent_query" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                    <i class="fa fa-search" ng-show="!querying"></i>
                    <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                    <span ng-show="!querying">查询</span>
                    <span ng-show="querying">查询中...</span>
                </button>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            客户单位列表
        </div>
        <div class="table-responsive">
            <div ui-grid="gridOptions" ui-grid-pagination ui-grid-auto-resize ui-grid-resize-columns style="min-height:390px; height:{{heightA}}px;
overflow:hidden; min-width:1000px;">
                <div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
            </div>
        </div>
        <div class="panel-body">
            <button id="table_clientManagent_add" ui-sref="app.client.client_add" class="pull-right-xs btn m-b-xs btn-sm btn-info btn-addon "><i class="fa fa-plus"></i>添加</button>
            <button ng-click="exportFunc()" class="pull-right-xs btn m-b-xs btn-sm btn-success btn-addon "><i class="fa fa-download"></i>导出报表</button>
        </div>
    </div>
</div>